Fix memory allocation problems in Cygwin build (Bug#9273).
authorKen Brown <kbrown@cornell.edu>
Tue, 16 Aug 2011 13:27:12 +0000 (09:27 -0400)
committerKen Brown <kbrown@cornell.edu>
Tue, 16 Aug 2011 13:27:12 +0000 (09:27 -0400)
commit8ec67298c89276abf1a9162f37d13dcff12386b1
tree7156d6aeb037c2317406bfe67374ad88cb008f4f
parentcc93a218b5f1dd4d23d54cbc788e64aa185012a1
Fix memory allocation problems in Cygwin build (Bug#9273).

* src/gmalloc.c [CYGWIN] (bss_sbrk_heapbase, bss_sbrk_heapinfo): New
variables.
(malloc_initialize_1) [CYGWIN]: Prepare for reinitializing the
dumped emacs.
(_free_internal_nolock) [CYGWIN]: Ignore requests to free storage
in the static heap.
[CYGWIN] (special_realloc): New function.
(_realloc_internal_nolock) [CYGWIN]: Use the new function on
requests to realloc storage in the static heap.

* src/unexcw.c ( __malloc_initialized): Declare external variable.
(fixup_executable): Force the dumped emacs to reinitialize malloc.
src/ChangeLog
src/gmalloc.c
src/unexcw.c